﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DjBlog.Admin
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
            {
                LoginUser();
            }
        }

        private void LoginUser()
        {
            string name = DjCommon.Utils.GetFormString("log");
            string pwd = DjCommon.Utils.GetFormString("pwd");
            if (name == "djqq" && pwd == "Djqq1987!!!")
            {
                HttpContext.Current.Session.Add("loginuser", "djqq");
                Response.Redirect("/admin/Post.aspx");
            }

        }
    }
}
